import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userPhoto: 'https://img1.baidu.com/it/u=764631240,3593772068&fm=253&fmt=auto&app=138&f=JPEG?w=504&h=500' // 头像地址（默认）
  },
  getters: {},
  mutations: {
    SET_USERPHOTO (state, value) {
      state.userPhoto = value
    }
  },
  actions: {},
  modules: {}
})
